﻿<Window x:Class="PatientTreatmentWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:my="http://schemas.microsoft.com/wpf/2008/toolkit"
    xmlns:extToolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit/extended"
    SizeToContent="WidthAndHeight" WindowStyle="None" AllowsTransparency="True" Icon="/Horizon.HMS;component/Images/POSIcon.ico"
    xmlns:local="clr-namespace:Horizon.HMS" WindowStartupLocation="CenterScreen" Background="Transparent" >
    <Border Background="White" BorderBrush="Navy" BorderThickness="2" CornerRadius="10">
        <Grid Margin="10" Background="{StaticResource WindowBackground}">
        <Grid.RowDefinitions>
            <RowDefinition Height="30"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
            <TextBlock Margin="20,2" FontSize="16" FontWeight="SemiBold" Foreground="{StaticResource TextLabelColor}">
            <Run Text="HMS (" />
            <Run Text="Your management partner..." FontSize="10" FontStyle="Italic"/>
            <Run Text=")" />
            <Run Text=" :: "/>
            <Run Name="Treatment"/>
        </TextBlock>
        <Button Grid.Column="2" Style="{DynamicResource CloseButtonStyle}" Width="11.195" Content="Button" x:Name="CloseButton" Cursor="Hand" HorizontalAlignment="Right" Margin="0,5.583,7.468,0" VerticalAlignment="Top" Height="12.77"/>
        <Button Grid.Column="2" Style="{DynamicResource MinimizeButtonStyle}" Width="12.402" Content="Button" x:Name="MinimizeButton" Cursor="Hand" HorizontalAlignment="Right" Margin="0,4.733,24.606,0" VerticalAlignment="Top" Height="13.537"/>
            <Path Data="M18,115 L616,115" Fill="#FFF4F4F5" Height="1" Margin="5" Width="420" Stretch="Fill" Stroke="White" Grid.Row="1" Grid.ColumnSpan="2"/>
            <Grid Grid.Row="2" Name="MainStack" Margin="10" HorizontalAlignment="Center">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <TextBlock Text="Select Template:" Style="{StaticResource TextBlockStyle}"/>
                <ComboBox Name="TemplateComboBox" Grid.Column="1" Margin="5" DisplayMemberPath="Name" SelectedValuePath="ID"/>
                <my:DataGrid Grid.Row="1" Height="350" Grid.ColumnSpan="2" AutoGenerateColumns="False" Margin="5" Name="PatientPrescriptionDataGrid" Visibility="Visible">
                    <my:DataGrid.Columns>
                        <my:DataGridTextColumn Header="Medicine" Width="220" Binding="{Binding medicineItem}" />
                        <my:DataGridTextColumn Header="Dosage" Binding="{Binding dosage}" />
                        <my:DataGridTextColumn Header="Frequency" Binding="{Binding frequencyName}" />
                        <my:DataGridTextColumn Header="Duration" Binding="{Binding duaration}" />
                        <my:DataGridTextColumn Binding="{Binding periods}" />
                    </my:DataGrid.Columns>
                </my:DataGrid>
                <TextBlock Text="Generic Drug:" Grid.Row="2" Style="{StaticResource TextBlockStyle}"/>
                <ComboBox Grid.Column="1" Grid.Row="2" Margin="2" Name="GenericDrugComboBox" DisplayMemberPath="Name" SelectedValuePath="ID"/>
                <TextBlock Text="Medicine Type:" Grid.Row="3" Style="{StaticResource TextBlockStyle}"/>
                <ComboBox Grid.Column="1" Grid.Row="3" Margin="2" Name="MedicineTypeComboBox" DisplayMemberPath="Name" SelectedValuePath="ID"/>
                <TextBlock Text="Manufacturer:" Grid.Row="4" Style="{StaticResource TextBlockStyle}"/>
                <ComboBox Grid.Column="1" Grid.Row="4" Margin="2" Name="ManufacturerComboBox" DisplayMemberPath="Name" SelectedValuePath="ID"/>
                <TextBlock Text="Medicine:" Grid.Row="5" Style="{StaticResource TextBlockStyle}"/>
                <ComboBox Grid.Column="1" Grid.Row="5" Margin="2" Name="MedicineComboBox" DisplayMemberPath="Name" SelectedValuePath="ID"/>
                <TextBlock Text="Dosage:" Style="{StaticResource TextBlockStyle}" Grid.Row="6" />
                <StackPanel Orientation="Horizontal" Grid.Row="6" Grid.Column="1">
                    <extToolkit:WatermarkTextBox Watermark="Dosage" Name="DosageTextBox" Margin="2" Width="30"/>
                    <TextBlock Text="Frequency:" Style="{StaticResource TextBlockStyle}"/>
                    <ComboBox Margin="2" Grid.ColumnSpan="3" Name="FrequencyComboBox" DisplayMemberPath="Name" SelectedValuePath="ID" Width="80"/>
                    <TextBlock Text="Duration:" Style="{StaticResource TextBlockStyle}"/>
                    <extToolkit:WatermarkTextBox Watermark="Duration" Name="DurationTextBox" Margin="2" Width="30"/>
                    <TextBlock Text="Period:" Style="{StaticResource TextBlockStyle}"/>
                    <ComboBox Margin="2" Name="PeriodComboBox" DisplayMemberPath="Name" SelectedValuePath="ID" Width="80"/>
                </StackPanel>
              </Grid>
            <StackPanel Grid.Row="2"  Grid.Column="1" Margin="3,250">
                <Button Content="Add Treatment" Height="30" Width="100" Margin="3" Name="AddPrescriptionButton"/>
            </StackPanel>
        </Grid>
    </Border>
</Window>
